
#include <stdlib.h>
#include <stdio.h>
#include <time.h>


int get_ji_ou(int *ji, int *ou)
{

int o = 0;
int j = 0;
int r = 0; 
int jflag = 0;
int oflag = 0;
time_t t;

srand((unsigned) time(&t));

while (1){
	r = rand() % ( 9 - 1 + 1 ) + 1;

	if ( (r % 2) == 0){
		oflag = 1;
		o = r;
		printf("r:%d - > OU\n", r);
	}	
	if ( (r % 2) != 0){
		jflag = 1;
		j = r;
		printf("r:%d - > JI\n", r);
	}

	if (jflag && oflag )
		break;
}

*

printf("O:%d\nJ:%d\n", o,j );
return 0;

} 
